/**
 * 项目名：化工企业安全生产信息化管理平台
 * 日期：    2020-03-01 21:14:38
 * Copyright (c) 2015- -版权所有
 */

package com.joysuch.wwyt.edu.bean;

import java.util.List;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@JsonInclude(value = Include.NON_NULL)
public class EduTestPaperQuestionDetailBean implements java.io.Serializable {

    // columns START
    // ID
    private Long id;
    // 题类型
    private String type;
    private String typeName;
    // 题目ID
    private String questionTypeName;
    private Long questionId;
    private String name;
    private String content;
    // 分数
    private Double score;

    private EduExamUserAnswerDetailBean EduExamUserAnswerDetailBean;

    private String answer;
    // web端使用的选项["A、xx","B、xx"...]
    List<String> choices;
    // app端使用的选项[{code:'A',content:'xx'},{code:'B',content:'xx'}...]
    private List<Choices> choiceList;

    @JsonIgnore
    private Integer sort;
    // columns END
    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public static class Choices{
        private String code;
        private String content;
    }

}
